package apiday01;

/**
 * int Length():
 * 可以获取字符长度
 */
public class LengthDemo {
    public static void main(String[] args) {
       String str = "我 喜欢 你， I love you";
       int len = str.length();
       System.out.println(len);



       /* String str = "我 live java";
        int len = str.length();
        System.out.println(len);

        */


        /*String str  = "我爱java！";
        int len = str.length();
        System.out.println(len);

         */
    }

}
